#!/bin/bash
set -e
set -x
MYDIR="${0%/*}"
cd "$MYDIR/.."
source "recipes/common.sh"


# RECIPE START xxHash

rm -rf build/xxHash
cp -a xxHash build/
# Thanks God xxHash does NOT use autocrap
env \
	CC="${TARGET}-gcc" \
	AR="${TARGET}-ar" \
	PREFIX="$prefix" \
	LIBDIR="$prefix/${target_libdir}" \
make -j${JOBS} -C build/xxHash PREFIX=$prefix
env \
	CC="${TARGET}-gcc" \
	AR="${TARGET}-ar" \
	PREFIX="$prefix" \
	LIBDIR="$prefix/${target_libdir}" \
make -j${JOBS} -C build/xxHash install DESTDIR="$stage"

rm -rf build/xxHash

# RECIPE END xxHash
